<div class="row">
	<div class="col-md-12">
		<table class="table table-bordered" style="margin-top: -1px;">
			<tr>
				<#if (roles.caigouZhuanze || roles.tongjiZhuanze) && !['COMPLETED','SUSPEND','SHUTDOWN']?seq_contains(data.status)>
				<th width="35"></th>
				</#if>
				<th class="text-center" width="45">状态</th>
				<th class="text-center">名称</th>
				<th class="text-center">承建单位（部门）</th>
				<th class="text-center">合同金额</th>
				<th class="text-center" width="195">编号</th>
				<th class="text-center" width="195">工期</th>
			</tr>
			<#if data.subContracts??> <#list data.subContracts as sc>
			<tr>
				<#if (roles.caigouZhuanze || roles.tongjiZhuanze) && !['COMPLETED','SUSPEND','SHUTDOWN']?seq_contains(data.status)>
				<td class="text-center">
					<#if 'START'==sc.status>
					<#if (roles.caigouZhuanze && 'MATERIAL_CONTRACT'==sc.type) || roles.tongjiZhuanze && 'MATERIAL_CONTRACT'!=sc.type>
					<a href="javascript:;" class="icon-remove text-danger delete-contract" data-id="${sc.id}"></a>
					</#if>
					</#if>
				</td>
				</#if>
				<td class="text-center">${sc.status.value}</td>
				<td class="text-center">
					<span class="text-danger">[${sc.type.value}]</span>
					<a href="${request.contextPath}/sub-contract/view/${sc.id}">${sc.name}</a>
				</td>
				<td class="text-center">${sc.companyB}</td>
				<td class="text-center">${sc.price?string('currency')}</td>
				<td class="text-center">${sc.no}</td>
				<td class="text-center">${(sc.contractStart?string('yyyy-MM-dd'))!'-'} 至 ${(sc.contractEnd?string('yyyy-MM-dd'))!'-'}</td>
			</tr>
			</#list> </#if>
		</table>
	</div>
</div>